﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcApplication1.Models;

namespace MvcApplication1.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/
        private pescar2013_shop_purecssContext db = new pescar2013_shop_purecssContext();

        public ActionResult Index()
        {
            var lista = db.Productos.ToList();
            return View(model: lista);
        }

    }
}
